package in.muton.edushare.panels.upload.uploadify;

import org.apache.wicket.markup.html.CSSPackageResource;
import org.apache.wicket.markup.html.JavascriptPackageResource;
import org.apache.wicket.util.template.TextTemplateHeaderContributor;

import in.muton.edushare.pages.EduShareBasePage;
import in.muton.edushare.pages.common.EdusharePanel;

public class UploadifyPanel extends EdusharePanel {

	private static final long serialVersionUID = 2723473826405963627L;

	public UploadifyPanel(String id, EduShareBasePage page, UploadifyBehavior behavior) {
		super(id, page);
		add(JavascriptPackageResource.getHeaderContribution(UploadifyPanel.class, "swfobject.js"));
		add(JavascriptPackageResource.getHeaderContribution(UploadifyPanel.class, "jquery.uploadify.v2.1.0.min.js"));
		add(TextTemplateHeaderContributor.forJavaScript(UploadifyPanel.class, "multiupload.js", behavior.getVariables()));
		add(CSSPackageResource.getHeaderContribution(UploadifyPanel.class, "uploadify.css"));
	}

}
